﻿/*
 * 
 * Description: Office COMAddins Connector office object library dispatcher
 */
#ifndef OCC_CWORDAPPLICATION_H
#define OCC_CWORDAPPLICATION_H

namespace {
constexpr const DWORD DISPID_WORDAPP_GET_COMADDINS = 0x6f;
}

class CWordApplication : public COleDispatchDriver {
public:
    CWordApplication() {}
    CWordApplication(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
    CWordApplication(const CWordApplication &dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
    LPDISPATCH get_COMAddIns()
    {
        LPDISPATCH result;
        InvokeHelper(DISPID_WORDAPP_GET_COMADDINS, DISPATCH_PROPERTYGET, VT_DISPATCH, (void *)&result, nullptr);
        return result;
    }
};

#endif  // !OCC_CWORDAPPLICATION_H